﻿using CRM.Extensions;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    public abstract class BaseModel : IHasTimestamps
    {
        [Column("created_at", TypeName = "Timestamp"), Comment("创建时间")]
        public virtual DateTime CreatedAt { get; set; }
        [Column("updated_at", TypeName = "Timestamp"), Comment("更新时间")]
        public virtual DateTime UpdatedAt { get; set; }
    }
}
